package com.juyu.miliao.scheduler.rabbitMQ;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 主播登出mq消息，发送给api
 */
@Component
public class HostLineTimeSignOutMq {
    @Resource
    private AmqpTemplate amqpTemplate;

    public void sendSignOutMq(String userId){
        amqpTemplate.convertAndSend("exchange_host_line_sign_out","routing_key_host_line_sign_out",userId);
    }
}
